//
//  yuanxinplayer.h
//  yuanxinplayer
//
//  Created by 晏德智 on 2016/11/23.
//  Copyright © 2016年 晏德智. All rights reserved.
//

#if __has_include(<React/RCTView.h>)
#import <React/RCTView.h>
#else
#import "RCTView.h"
#endif

@interface YuanXinPlayer : RCTView

@property(nonatomic,copy) NSURL *url;
@property(nonatomic,copy) NSString *localPath;

@property (nonatomic, copy)   RCTDirectEventBlock onError;
@property (nonatomic, copy)   RCTDirectEventBlock onPlayBackState;
@property (nonatomic, copy)   RCTDirectEventBlock onTriggerGetCurrentPlaybackTime;
@property (nonatomic, assign) UIEdgeInsets contentInset;
@property (nonatomic, assign) BOOL shouldAutoplay;
@property (nonatomic, assign) int framedrop;

- (void)prepare;
- (void)play;
- (void)stop;
- (void)resume;
- (void)pause;
- (void)shutdown;
- (void)seekTo:(NSTimeInterval)currentPlaybackTime;
- (NSTimeInterval)getCurrentPlaybackTime;

@end
